package com.seagull.core.test.desing.proxy;

import com.seagull.core.test.desing.proxy.jingtai.ProxyStar;
import com.seagull.core.test.desing.proxy.jingtai.RealStar;
import org.junit.Test;

/**
 * @author:jian.zhou
 * @DATE: 2017/12/21.
 * @Version:0.0.1
 * @Desc:
 */
public class Client {


    @Test
    public void testJingtai(){

        RealStar realStar = new RealStar();

        ProxyStar proxyStar = new ProxyStar(realStar);
        proxyStar.confer();

        proxyStar.bookTicket();
        proxyStar.sing();
    }
}
